package com.bear.cmcc.NetTestHTTP.component;

import com.bear.cmcc.NetTestHTTP.util.MyCommonUtil;

/**
 * 网络测试每轮测试信息，一轮测试有多个测试结果。
 * @author suchangjun
 * @modify guanyh增加字段内容
 */
public class NetTestRoundInfoBean {
    
	private int pid;//pid
    private String startTime;//一轮下载开始时间
    private String endTime;//一轮下载结束时间
    private double averageSpeed;//一轮下载平均速度
    private double maxSpeed;//一轮下载最大速度
    private double minSpeed;//一轮下载最小速度
    private int testTimes;//一轮下载包含下载次数
    private String isDelete;//是否删除0为正常，1为删除
    private String downServer;//下载服务器名
    private String consumeTime;//时间间隔
    private String villageName;
    private double up_averageSpeed=0d; //一轮测试平均速度 upload
    
    public void setConsumeTime(String _consumeTime)
   	{
   		this.consumeTime = _consumeTime;
   	}
   	public String getConsumeTime()
   	{
   		return consumeTime;
   	}
   	
    public void setVillageName(String _villageName)
   	{
   		this.villageName = _villageName;
   	}
   	public String getVillageName()
   	{
   		return villageName;
   	}
    
    public void setPID(int _str)
   	{
   		this.pid = _str;
   	}
   	public int getPID()
   	{
   		return pid;
   	}
   	
   	public void setStartTime(String _str)
   	{
   		this.startTime = _str;
   	}
   	public String getStartTime()
   	{
   		return startTime;
   	}
   	
   	public void setEndTime(String _str)
   	{
   		this.endTime = _str;
   	}
   	public String getEndTime()
   	{
   		return endTime;
   	}
   	
   	public void setAverageSpeed(double _str)
   	{
   		this.averageSpeed = _str;
   	}
   	public double getAverageSpeed()
   	{
   		try
   		{
   			return Double.valueOf(MyCommonUtil.getFormatString(averageSpeed));
   		}
   		catch(Exception e)
   		{
   			return 0;
   		}
   	}
   	
   	public void setMaxSpeed(double _str)
   	{
   		this.maxSpeed = _str;
   	}
   	public double getMaxSpeed()
   	{
   		try
   		{
   			return Double.valueOf(MyCommonUtil.getFormatString(maxSpeed));
   		}
   		catch(Exception e)
   		{
   			return 0;
   		}
   	}
   	
   	public void setMinSpeed(double _str)
   	{
   		this.minSpeed = _str;
   	}
   	public double getMinSpeed()
   	{
   		try
   		{
   			return Double.valueOf(MyCommonUtil.getFormatString(minSpeed));
   		}
   		catch(Exception e)
   		{
   			return 0;
   		}
   	}
   	
   	public void setTestTimes(int _str)
   	{
   		this.testTimes = _str;
   	}
   	public int getTestTimes()
   	{
   		return testTimes;
   	}
   	
   	public void setIsDelete(String _str)
   	{
   		this.isDelete = _str;
   	}
   	public String getIsDelete()
   	{
   		return isDelete;
   	}
   	
   	
   	public void setDownServer(String _str)
   	{
		this.downServer = _str;
	}
	public String getDownServer()
	{
		return downServer;
	}
	public double getUp_averageSpeed() {
		return up_averageSpeed;
	}
	public void setUp_averageSpeed(double up_averageSpeed) {
		this.up_averageSpeed = up_averageSpeed;
	}

}
